import Vue from 'vue'
Vue.config.productionTip = false

import App from './App'
App.mpType = 'app'

// uView 版本 2.0
import uView from 'uview-ui'
Vue.use(uView)
// 
import request from './utils/request.js';
import requests from './utils/requestForm.js';
import api from './utils/api.js'
Vue.use(request)
Vue.use(api)
Vue.use(requests)
uni.$u.config.unit = 'rpx'
// 
import './uni.promisify.adaptor'
// 
import store from './store'
// 
import {retJSONArr, fn_retjson, clickgate, alertTost} from './common/js/defaults.js'
Vue.prototype.$retJSONArr = retJSONArr
Vue.prototype.$fn_retjson = fn_retjson
Vue.prototype.$clickgate = clickgate
Vue.prototype.$alertTost = alertTost
// 小程序未完善
const app = new Vue({
    ...App,
	store
})
app.$mount()